package com.chwl.framework.grpc.junit;


import com.chwl.framework.grpc.GrpcServerRunner;
import com.chwl.framework.grpc.etcd.EtcdService;
import com.chwl.framework.grpc.service.GrpcCommonService;
import com.chwl.framework.grpc.service.impl.AccountServiceImpl;
import org.junit.Test;

/**
 * <p>功能:</p>
 *
 * @date:2018-07-15 下午5:49<br/>
 * @version:1.0 <br/>
 */
public class GrpcServerRunnerJunit {
    @Test
    public void serverStart() throws Exception {
        EtcdService.getInstance().connection("http://119.23.225.123:6500");
        new GrpcServerRunner(9000, new GrpcCommonService(AccountServiceImpl.class)).start();
        Thread.sleep(Integer.MAX_VALUE);
    }
}
